package org.frog.sgs.mina.server;

import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolEncoderAdapter;
import org.apache.mina.filter.codec.ProtocolEncoderOutput;

/**
 * @author duanxiangqi
 * @date 2012-10-18
 */
public class MyProtocolEncoder extends ProtocolEncoderAdapter {

	public void dispose(IoSession session) throws Exception {
		System.out.println("MyProtocolEncoder.dispose()");
	}

	public void encode(IoSession session, Object message, ProtocolEncoderOutput out) throws Exception {
		System.out.println("MyProtocolEncoder.encode()");
	}
}
